package com.github.caijh.mall.store.convert;

import com.github.caijh.mall.store.model.StoreProduct;
import com.github.caijh.mall.store.model.StoreProductAttrValue;
import com.github.caijh.mall.store.response.StoreProductAttrValueResponse;
import com.github.caijh.mall.store.response.StoreProductVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ProductConvertMapper {

    ProductConvertMapper MAPPER = Mappers.getMapper(ProductConvertMapper.class);

    StoreProductVo toStoreProductVo(StoreProduct storeProduct);

    StoreProductAttrValueResponse toStoreProductAttrValueVo(StoreProductAttrValue productAttrValue);

}
